home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8432 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.lmu.edu!aminier@popmail.lmu.edu
  2. From: Ray Toal <rtoal@eecs.lmu.edu>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the ....
  5. Date: 18 Feb 1996 06:38:00 GMT
  6. Organization: Loyola Marymount University
  7. Message-ID: <4g6hg8$f4j@ux1.lmu.edu>
  8. References: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com> <3114d8fb.5a455349@zesi.ruhr.de> <4f5h5t$f13@vixen.cso.uiuc.edu> <4g1bgf$l5@mailhub.scitec.com.au> <3124B43F.19E0@escmail.orl.mmc.com> <4g2r2r$ded@stc06.ctd.ornl.gov> <dewar.824581148@schonberg>
  9. NNTP-Posting-Host: 157.242.68.31
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1 (Windows; U; 16bit)
  14.  
  15. dewar@cs.nyu.edu (Robert Dewar) wrote:
  16. >iMatt says
  17. >
  18. > >As for Ada, I'm not yet fully convinced abou the package vs
  19. > >type thing.  C++ might be ugly because you can have all sorts of
  20. > >elements outside classes, but in Eiffel you cannot.
  21. >
  22. > >Eiffel intentionally makes the unit of namespace and of type
  23. > >the same.
  24. >
  25. >Time to make my observation again:
  26. >
  27. >unify and confuse mean the same thing (join together)
  28.  
  29. In this case there are good arguments for the "confuse" part - or,
  30. at least that identifying a class (a logical construct) with a
  31. package or module (a physical construct) is less desirable than
  32. cleanly separating them, like Ada does.
  33.  
  34. Norman Cohen just posted a really good article on this topic a few
  35. days ago and I won't repeat it here.  It should at least "convince"
  36. people that separating package and type is a solid design decision
  37. and not a hack to maintain upward compatibility with Ada 83.
  38.  
  39. Having programmed in Smalltalk and C++ before Ada 95, I admit I had
  40. to look twice at the Ada approach because I was so USED TO confusing
  41. class with module.  But taking a few minutes to get used to Ada's
  42. approach I like it better.
  43.  
  44. Ray Toal
  45.  
  46.  
  47.